SERVER=xenon.cs.luc.edu:~/public_html/cs271/lectures

all: images slides article

article:
	pdflatex trees.article
	bibtex trees.article
	pdflatex trees.article
	pdflatex trees.article

slides:
	pdflatex trees.beamer
	bibtex trees.beamer
	pdflatex trees.beamer
	pdflatex trees.beamer

images:
	dot -Tpdf xml.dot > xml.pdf
	dot -Tpdf sample_tree.dot > sample_tree.pdf
	dot -Tpdf sample_binary_tree.dot > sample_binary_tree.pdf
	dot -Tpdf sample_binary_search_tree.dot > sample_binary_search_tree.pdf

publish: all
	scp trees.beamer.pdf ${SERVER}/lec9-trees.beamer.pdf
	scp trees.article.pdf ${SERVER}/lec9-trees.article.pdf

clean:
	-rm *.aux *.log *.nav *.out *.pdf *.snm *.toc *.vrb *.ps *.dvi *.bbl *.blg
	-rm *~